package com.yj.inventory.dto;

import com.yj.config.mybatis.pagination.PageDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * Copyright 2017 (C) Yunjian-VC
 * Created on : 2017/12/13
 * Author     : Unbelievable9
 **/
@Data
public class InventoryListDto extends PageDto {

    @ApiModelProperty(hidden = true)
    private String user_id;

    @ApiModelProperty("关键字")
    private String keyword;

    @NotNull(message = "库存类型不能为空")
    @Range(min = 0, max = 4, message = "库存类型不能为空")
    @ApiModelProperty(value = "类型 0 全部 1 矿 2 货场 3 站台 4 港口", required = true)
    private Integer type;
}
